﻿@model Home.Domain.Entities.Category
@{
    ViewBag.Title = "CMS管理系统";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section head{
   <script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="partner">
	@{Html.RenderPartial("_Manager");}
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>新建@(ViewBag.ColumnTitle)</h2>
                  @*<ul class="filter">
						<li>
                        <select name="ucity" style="width:110px;">
                        <option value='0'>一级分类</option>
                        <option value='142' >显示器</option>
                        <option value='100' >电脑外设</option>
                        <option value='70' >网络设备</option>
                        <option value='11' >装机硬件</option>
                        </select>&nbsp;
                        </li>
					</ul>*@
                </div>
                <div class="sect">
                    @using (Html.BeginForm())
                    {
                   @* @Html.ValidationSummary(true)*@
						@*<div class="wholetip clear"><h3>1、登录信息</h3></div>*@
                        <div class="field" >
                            <label>分类</label>
                            @Html.DropDownListFor(model => model.ParentId, ViewBag.Category as SelectList, new { @class = "f-input", style = "width:200px" })
                            <div class="clear"></div>
                        </div>
                        <div class="field">
                            <label>名称</label>
                           @Html.TextBoxFor(model => model.Name, new { @class = "f-input" })
                            <div class="clear"></div>
                          @Html.ValidationMessageFor(model => model.Name)
                        </div>
                        <div class="field">
                            <label>品牌</label>
                            @foreach (var item in ViewBag.Brand as IList<SelectListItem>)
                            {                                
                                <span style="width:80px;float:left;"><input type="checkbox" @(item.Selected?"checked=\"checked\"":"") name="BrandId" value="@item.Value" />@item.Text</span>
                            }
                            <div class="clear"></div>
                        </div>
                        <div class="act">
                            <input type="submit" value="新建" name="commit" id="partner-submit" class="formbutton"/>
                        </div>
                    }
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>

<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->